<?
include('../db/koneksi.php');
$nm_tbl=$_POST['nm_tbl'];
$result = mysql_query("SHOW COLUMNS FROM $nm_tbl");
$resultx = mysql_query("SHOW COLUMNS FROM $nm_tbl");
$resultxx = mysql_query("SHOW COLUMNS FROM $nm_tbl");
$judul_atas=split('_',strtolower($nm_tbl));
$jum_atas=count($judul_atas);
$title='Form Input';
for($a=0;$a<$jum_atas;$a++){
$title=$title.' '.ucwords($judul_atas[$a]);
}
$l=1;
if (mysql_num_rows($resultxx) > 0) {
	while ($rowxx = mysql_fetch_assoc($resultxx)) {
	$index[$l]=strtolower($rowxx['Field']);
	$l++;
	}
	
	}
?>
<hr>

<code>
&lt;?php<br>
include '../db/koneksi.php';<br>
include('../db/manipulasi_table.php');<br>
$kode=$_POST['kode'];<br>
//====================Hapus data (update status delete jadi 1) ================<br>
$result=delete_table('<?=$nm_tbl?>','<?=$index[1]?>',$kode);<br>
echo $result;<br>
?&gt;<br>
</code>